package com.kungfuhacking.wristbandpro.my.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by Aaron on 17/6/2.
 */

public class FamilyData implements Parcelable {

    private String id;
    private String token;
    private String address;
    private String houseType;
    private String hukouAddress;
    private String hukouType;
    private ArrayList<Family> family;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public String getHukouAddress() {
        return hukouAddress;
    }

    public void setHukouAddress(String hukouAddress) {
        this.hukouAddress = hukouAddress;
    }

    public String getHukouType() {
        return hukouType;
    }

    public void setHukouType(String hukouType) {
        this.hukouType = hukouType;
    }

    public ArrayList<Family> getFamily() {
        return family;
    }

    public void setFamily(ArrayList<Family> family) {
        this.family = family;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.token);
        dest.writeString(this.address);
        dest.writeString(this.houseType);
        dest.writeString(this.hukouAddress);
        dest.writeString(this.hukouType);
        dest.writeTypedList(this.family);
    }

    public FamilyData() {
    }

    protected FamilyData(Parcel in) {
        this.id = in.readString();
        this.token = in.readString();
        this.address = in.readString();
        this.houseType = in.readString();
        this.hukouAddress = in.readString();
        this.hukouType = in.readString();
        this.family = in.createTypedArrayList(Family.CREATOR);
    }

    public static final Parcelable.Creator<FamilyData> CREATOR = new Parcelable.Creator<FamilyData>() {
        @Override
        public FamilyData createFromParcel(Parcel source) {
            return new FamilyData(source);
        }

        @Override
        public FamilyData[] newArray(int size) {
            return new FamilyData[size];
        }
    };
}
